const THEME = {
  light: {
    primary: "#fff",
    fontColor: "#000",
  },
  dark: {
    primary: "#333",
    fontColor: "#fff",
  },
  blue: {
    primary: "#1890FF",
    fontColor: "#fff",
  },
};

export function changeTheme(theme) {
  const vars = THEME[theme] || THEME.light;
  for (var i in vars) {
    // console.log(i)
    document.body.style.setProperty(`--${i}`, vars[i]);
  }
}
